package hmis.pos.Entity;


import hmis.pos.Base.BaseEntity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name="roomtype")
public class RoomType extends BaseEntity implements Serializable {

    //房间类型 唯一
    @Column(name="type",unique = true,nullable = false)
    private String type;

    //房间床型号
    @Column(name="bedsize",nullable = false)
    private String bedsize;

    //房间床数量
    @Column(name="bednumber",nullable = false)
    private int bednumber;

    //房间面积
    @Column(name="area",nullable = false)
    private String area;

    //是否有窗
    @Column(name="window",nullable = false)
    private String window;

    //房间数量
    @Column(name="roomnumber",nullable = false)
    private int roomnumber;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBedsize() {
        return bedsize;
    }

    public void setBedsize(String bedsize) {
        this.bedsize = bedsize;
    }

    public int getBednumber() {
        return bednumber;
    }

    public void setBednumber(int bednumber) {
        this.bednumber = bednumber;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getWindow() {
        return window;
    }

    public void setWindow(String window) {
        this.window = window;
    }

    public int getRoomnumber() {
        return roomnumber;
    }

    public void setRoomnumber(int roomnumber) {
        this.roomnumber = roomnumber;
    }

    @Override
    public String toString() {
        return "RoomType{" +
                "type='" + type + '\'' +
                ", bedsize='" + bedsize + '\'' +
                ", bednumber=" + bednumber +
                ", area='" + area + '\'' +
                ", window='" + window + '\'' +
                ", roomnumber=" + roomnumber +
                '}';
    }
}
